bitkeeper revision 1.1094 (40f64e48IpUzrEwjDEyKFZ9I2_7t6A)
authorcl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>
Thu, 15 Jul 2004 09:28:40 +0000 (09:28 +0000)
committercl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>
Thu, 15 Jul 2004 09:28:40 +0000 (09:28 +0000)
prefer config file from previous install over defconfig file

Makefile

index 389ca8234cdb7f93e372512da94c4ff847536838..dca9f39f545704e49521f50f6477b9a84c2199e8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -83,6 +83,9 @@ config-xen%:
 else
 config-xen%:
        $(MAKE) -C $(CDIR) ARCH=xen mrproper
+       @[ -e $(LINUX_CONFIG_DIR)/config-$(LINUX_VER)-$(subst config-,,$@) ] \
+         && cp $(LINUX_CONFIG_DIR)/config-$(LINUX_VER)-$(subst config-,,$@) \
+               $(CDIR)/.config || \
        $(MAKE) -C $(CDIR) ARCH=xen $(subst config-,,$@)_defconfig
 endif